package oop;

public class Unit23 {
	public static void main(String[] args){
		Outer ou = new Outer();
		ou.show();
		
		C c = new C();
		c.show2();
	}
}

class Outer{
	
	public void show(){
		Inner in = new Inner();
		in.display();
	}
	
	class Inner{
		public void display(){
			System.out.println("I am inner class");
		}
	}
	
}

class C{
	public void show2(){
		Outer.Inner in = new Outer().new Inner();
		in.display();
	}
}

